package licode.unisop.log.service.infrastructure.repository.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 定义登录日志数据项
 *
 * @author licode
 */
@Data
@TableName("au_login_log")
public class LoginLogPO {
    @TableId(type = IdType.INPUT)
    private String id;

    private String tenantId;
    private String platformId;
    private String platformName;
    private String clientId;
    private String terminalId;
    private String authType;
    private String userId;
    private String userAccount;
    private String userName;
    private String userRole;
    private String peerIp;
    private String userAgent;
    private String state;
    private String reason;
    private String region;
    private LocalDateTime loginTime;
}
